package com.palnar.ilecker.model;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

import org.ksoap2.serialization.SoapObject;

public class ItemBase implements Serializable 
{
	public ItemBase()
	{		
	}
	
	private Integer nameId;

	public Integer getName() 
	{
		return nameId;
	}

	public void setName(Integer name) 
	{
		this.nameId = name;
	}
	
	private Integer nameServerId;

	public Integer getServerNameId() 
	{
		return nameServerId;
	}

	public void setServerNameId(Integer name) 
	{
		this.nameServerId = name;
	}
	
	private Integer description;
	
	public Integer getDescription() 
	{
		return description;
	}

	public void setDescription(int description) 
	{
		this.description = description;
	}

//	public void TextNameBuilder(SoapObject nameSoapObj, HashMap<Integer, Language> languages)
//	{
//		for (int i = 0; i < nameSoapObj.getPropertyCount(); i++) 
//		{
//			SoapObject textSoapObject = (SoapObject)nameSoapObj.getProperty(i);
//			if(textSoapObject != null)
//			{
//			Integer languageId = Integer.parseInt(textSoapObject.getProperty("Key").toString());
//			Language l = languages.get(languageId);
//			String name = textSoapObject.getProperty("Value").toString();
//			//displayNames.put(l.getClientId(), name);
//			}
//		}				
//	}
//	
//	public void TextDescriptionBuilder(SoapObject descriptionSoapObj) 
//	{
//		for (int i = 0; i < descriptionSoapObj.getPropertyCount(); i++) 
//		{
//			SoapObject textSoapObject = (SoapObject)descriptionSoapObj.getProperty(i);
//			
//			Integer languageId = Integer.parseInt(textSoapObject.getProperty("Key").toString());
//			String name = textSoapObject.getProperty("Value").toString();
//			//displayNames.put(languageId, name);
//		}
//				
//	}
}
